<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="wzc">
        <p v-if="ok">111111111</p>
        <p v-else>222222222</p>
        <p v-show="ok">33333</p>
        <p v-show="!ok">44444</p>
        <button @click='ok=!ok'>切换</button>
        <!-- 
            如果频繁使用就使用V-show
         -->

    </div>
    <script src="./vue.min.js"></script>
    <script>
        const vm = new Vue({
            el: '#wzc',
            data: {
                ok: false,
            },
            // methods: {
            //     up() {
            //         return ko = true
            //     }
            // },
        })
    </script>
</body>

</html>